import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)
const routes = [
    {
            path: '/',
        name: 'index',
        meta: {
            title: 'index'
        },
        component: () => import('../view/index.vue')
    }
];
const router = new Router({
    routes,
    mode: 'history'
})

// router.afterEach(to => {
//     // setTitle(to, router.app)
//     // ViewUI.LoadingBar.finish()
//     window.scrollTo(0, 0)
// })

export default router
